﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BLL; //Phải Add reference


namespace QLSV1
{
    public partial class Hienthi : Form
    {
        public Hienthi()
        {
            InitializeComponent();
        }

        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
              
            KhoaDAL khoadal = new KhoaDAL();
            dataGridView1.DataSource = khoadal.GetAll();
            dataGridView1.AutoResizeColumns();

        }
    }
}
